cc.Class({
    extends: cc.Component,

    properties: {
       item_level:{
        default:null,
        type:cc.Prefab,
       },
       content_layout:{
        default:null,
        type:cc.Node,
       },
      
    },
    onLoad () {
        console.log('关卡管理者');
        this.Creator_Level();
    },
    Creator_Level(){
        let e = this;
        for (let i = 1; i < 11; i++) {
            let level = cc.instantiate(e.item_level);
            this.content_layout.addChild(level);
            let name_ = level.name ;
            level.name = name_ + i;
            level.getComponent("Item_level").get_num(i);
            console.log('DataMangrt.getData()',DataMangrt.getData());
            if (i <= DataMangrt.getData()) {
                level.getChildByName('mask').active = false;
            }
        }
    },
    Btn_Close(){
    this.node.active = false; 
    }
    // update (dt) {},
});
